﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jizsoft.JFrame.Modeling.Domain.Entities
{
    public class DataType
    {
        public Guid Id { get; set; }
        public string Code { get; set; }
        public string Caption { get; set; }
        /// <summary>
        /// 是否限制长度,true:限制,false:不限制
        /// </summary>
        public bool IsLimitLength { get; set; }
        /// <summary>
        /// 最小长度是否可以修改,true:可以修改,false:不可以修改
        /// </summary>
        public bool? IsMinLengthOptional { get; set; }
        /// <summary>
        /// 最大长度是否可以修改,true:可以修改,false:不可以修改
        /// </summary>
        public bool? IsMaxLengthOptional { get; set; }
        public int? MinLength { get; set; }
        public int? MaxLength { get; set; }
        public bool IsPrivate { get; set; }
    }
}
